package com.xmtlxx.wms.mapper;

import com.xmtlxx.common.core.mapper.BaseMapperPlus;
import com.xmtlxx.wms.domain.ViewingDtl;
import com.xmtlxx.wms.domain.bo.ViewingDtlBo;
import com.xmtlxx.wms.domain.vo.ViewingDtlVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 看样明细Mapper接口
 *
 * @author xmtlxx
 * @date 2022-08-15
 */
public interface ViewingDtlMapper extends BaseMapperPlus<ViewingDtlMapper, ViewingDtl, ViewingDtlVo> {
    /**
     * 根据条件分页查询看样明细
     *
     * @param viewingDtl 看样明细
     * @return Page ViewingDtl
     */
//    @DataPermission({
//        @DataColumn(key = "tenantName", value = "v.create_by"),
//        @DataColumn(key = "deptName", value = "v.dept_id"),
//        @DataColumn(key = "userName", value = "v.create_by")
//    })
    Page<ViewingDtlVo> selectPageViewingDtlList(@Param("page") Page<ViewingDtl> page,@Param("viewingDtl") ViewingDtlBo viewingDtl);

    /**
     * 查询看样明细列表
     *
     * @param viewingDtl 看样明细
     * @return 看样明细集合
     */
//    @DataPermission({
//        @DataColumn(key = "tenantName", value = "v.create_by"),
//        @DataColumn(key = "deptName", value = "v.dept_id"),
//        @DataColumn(key = "userName", value = "v.create_by")
//    })
    List<ViewingDtlVo> selectViewingDtlList(@Param("viewingDtl") ViewingDtlBo viewingDtl);

    ViewingDtlVo selectViewingDtlVoByID(String id);
}
